package Month10.day1001;

public class Persion implements Cloneable{
    String name;
    int age;
    String gender;

    public Persion(String name, int age, String gender) {
        this.name = name;
        this.age = age;
        this.gender = gender;
    }

    @Override
    public Persion clone() throws CloneNotSupportedException {
        return (Persion)super.clone();
    }

    public static void main(String[] args) throws CloneNotSupportedException{
        Persion p1 = new Persion("李华",18,"男");
        Persion p2 = p1.clone();
    }
}
